$("#refresh-data").html("<%= escape_javascript(render partial: 'devices/detail/refresh', locals: {exclude_points: @exclude_points}) %>");